/*
 * This file is part of ELCube.
 *
 * ELCube is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * ELCube is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with ELCube.  If not, see <https://www.gnu.org/licenses/>.
 */
package cn.nkpro.elcube.docengine;

public enum NkDocCycle{
        // 调用卡片创建前
        beforeCreate,
        // 调用卡片创建后
        afterCreated,

        // 调用卡片计算前
        beforeCalculate,
        // 调用卡片计算后
        afterCalculated,

        // 调用卡片更新前
        beforeUpdate,
        // 调用卡片beforeUpdate后，可以强制修改卡片数据
        afterUpdate,
        // 数据库操作后，数据库已经更新完成，可以在其他单据中获取到最新的单据数据
        afterUpdated,
        // 调用卡片数据库操作完成，并单据状态发生变化
        stateChanged,
        // 单据事务提交后
        afterUpdateCommitted,

        // 调用卡片复制后
        afterCopied,

        beforeDelete,
        afterDeleted,
        afterDeleteCommitted,
}